package text;


import org.junit.Before;
import org.junit.Test;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

import com.lankystar.sos.model.UserType;
import com.lankystar.sos.service.IStatusInterface;


public class StatusTest {

	ApplicationContext atx = null;
	IStatusInterface statusInterface = null;
	@Before
	public void inti(){
		atx = new ClassPathXmlApplicationContext("applicationContext.xml");
		statusInterface =  (IStatusInterface) atx.getBean("statusInterface");
	}
	@Test
	public void addUserType() {
		UserType userType = new UserType();
		userType.setUserkey(0);
		userType.setUserTypeId(1);
		userType.setUservalue("普通用户");
		statusInterface.addUserTypeMethod(userType);
		
	}

}
